<?php
namespace app\common\req;

use app\common\tools\ReqHttp;

class DvdReq extends ReqHttp
{
    protected static $public_params = [
        'data_version' => '0',
        'device_token' => '',
        'format' => 'json',
        'osv' => 'web_h5_*_*',
        'sess_key' => '304d77a9b3d30cf349e583c2060f6f8d03f0eb43',
        'shareUserId' => '',
        'shop_url' => 'https://11000000715.vyohui.cn',
        'ts' => '1597635626200',
        'wh' => '750_1334',
        'sign' => 'davdianTestSign11111111',
    ];

    /**
     * 用于替换host域名、可以实现一个类用于请求一种接口
     */
    protected static function host()
    {
        return parent::host();
    }

    /**
     * 合并公参
     */
    protected static function params(Array $params = [])
    {
        return array_merge(self::$public_params, $params);
    }

    public static function teamMemberList($params)
    {
        $params = self::params($params);
        return self::post('/api/mg/content/bookstore/teamMemberList', $params);
    }
}
